package com.woniu.learnexception.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by woniu201
 * created in 2018/5/6
 */
@Controller
public class TestController {

    @GetMapping(value = "/test1" )
    public String test1() throws Exception{
        int c =  1/0;
        return "aaaaaaaa";
    }
}
